/* 头部样式 */
.header {
    height: 80px;
    border-bottom: 2px solid #e1251b;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: inline-block;
    width: 190px;
    height: 40px;
    background-color: #e1251b;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
}

.logo a:hover {
    background-color: #c81623;
}

.page-title {
    margin-left: 30px;
    font-size: 22px;
    color: #333;
    font-weight: bold;
}

/* 主要内容区域 */
.main {
    background-color: #f5f5f5;
    padding: 20px 0;
    min-height: calc(100vh - 160px);
}

/* 收藏列表样式 */
.favorites-list {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.favorite-item:last-child {
    border-bottom: none;
}

.favorite-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-right: 20px;
}

.item-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.item-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    color: #e1251b;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-price::before {
    content: "￥";
    font-size: 14px;
}

.item-operations {
    width: 200px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-remove {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn-remove:hover {
    background: #f5f5f5;
}

.btn-cart {
    background: #e1251b;
    color: #fff;
}

.btn-cart:hover {
    background: #c81623;
}

/* 空收藏列表提示 */
.empty-favorites {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.empty-favorites p {
    margin: 20px 0;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background: none;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo a {
        font-size: 22px;
    }

    .page-title {
        font-size: 18px;
    }

    .favorite-item {
        flex-direction: column;
        text-align: center;
    }

    .favorite-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .item-info {
        flex-direction: column;
    }

    .item-operations {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

.favorite-item .date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toast-message.fade-out {
    animation: fadeOut 0.3s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.favorites-container .copyright,
.favorites-container .footer-wrapper .copyright {
    background: transparent;
}

.favorites-container .footer-wrapper .copyright-text {
    background: transparent !important;
} 